/**
 * 
 */
package com.iapcursos.portal.procefet.modelo.beans.entitys;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * @author gleison
 *
 */
@NamedQueries({
	@NamedQuery(name="distinctNamesPapeis", query=" SELECT DISTINCT p.nome FROM Papel p")
})
@Entity
@Table(name = "PAPEIS")
public class Papel {

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	private String nome;
	private String login;
	/**
	 * 
	 */
	public Papel() {
		// TODO Auto-generated constructor stub
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}

}
